import request from '@/utils/request'


export function setUpList(data) { //购置立项-列表
    return request({
        url: '/project-management/api/purchaseInitiation/page',
        method: 'post',
        data
    })
}
export function setUpApprovalList(data) { //购置立项-列表
    return request({
        url: '/project-management/api/assets/audit/pi/page',
        method: 'post',
        data
    })
}
export function setUpListAll(data) { //购置立项-列表all
    return request({
        url: '/project-management/api/purchaseInitiation/purchaseInitiation',
        method: 'post',
        data
    })
}
export function setUpAdd(data) { //购置立项-添加
    return request({
        url: '/project-management/api/purchaseInitiation',
        method: 'POST',
        data
    })
}
//原 put
export function setUpEdit(data) { //购置立项-修改
    return request({
        url: '/project-management/api/purchaseInitiation/put',
        method: 'post',
        data
    })
}
export function setUpDetail(id) { //购置立项-单条查询
    return request({
        url: '/project-management/api/purchaseInitiation/'+id,
        method: 'get',
    })
}
//原 del
export function setUpDelete(id) { //购置立项-单条查询删除
    return request({
        url: '/project-management/api/purchaseInitiation/del/'+id,
        method: 'get',
    })
}

export function setUpRecall(data) { //撤回
    return request({
        url: '/project-management/api/assets/audit/recall',
        method: 'POST',
        data
    })
}



